<?php 
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
session_start();
$config = array();

if($_SERVER['SERVER_NAME'] != 'localhost' )
{
	$db_host     = "localhost";
	$db_name     = "trivia_buster";
	$db_user     = "trivia_buster";
	$db_pass     = "mohsin1234";
	
	$config['basedir']  =  "/home/trivia/domains/triviabuster.bigteo.net/public_html";
	$config['baseurl']  =  "http://triviabuster.bigteo.net";
}
else
{
	$db_host     = "localhost";
	$db_name     = "triviabuster";
	$db_user     = "root";
	$db_pass     = "vertrigo";
	
	$config['basedir']  =  "D:/VertrigoServ/www/triviabuster";
	$config['baseurl']  =  "http://localhost/triviabuster";
}



include($config['basedir'] . "/include/class_db.php");
$db = new Database($db_host, $db_user, $db_pass, $db_name);
$db->connect();
include($config['basedir'] . "/include/classes/class_language.php");
include($config['basedir'] . "/include/classes/class_paginate.php");
include($config['basedir'] . "/include/messages.php");
include($config['basedir'] . "/include/core.php");

